<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>属性</title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
		<style>
		  .c1{
			  background-color: red;
		  }
		  .c2{
			  background-color: blue;
		  }
		</style>
	</head>
	<body>
		<div id="app">
			<input type="text" v-model="choose"/>
			<input type="text" v-model="showpic" placeholder="图片的路径"/>
			<div :class="choose">
				good morning
			</div>
			 <img :src="showpic"/>
			<img :src="'../day7/1.jpg'"/>
		</div>
		<script>
		  var m=new Vue({
			  el:'#app',
			  data:{
				  choose:"c2",
				  showpic:''
			  }
		  })
		</script>
	</body>
</html>
